package com.bd.scm.module.rule.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bd.scm.dao.mapper.rule.MjRuleRealMapper;
import com.bd.scm.dao.mapper.user.UserInfoMapper;
import com.bd.scm.domain.models.rule.MjRuleReal;
import com.bd.scm.module.rule.service.IMjRuleRealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yufc
 * @since 2019-09-03
 */
@Service
public class MjRuleRealServiceImpl extends ServiceImpl<MjRuleRealMapper, MjRuleReal> implements IMjRuleRealService {

    @Autowired
    private MjRuleRealMapper mjRuleRealMapper;

    /**
     * 查询门禁规则
     * @return
     */
    @Override
    public List<MjRuleReal> getDoorRule() {
        return mjRuleRealMapper.selectList(null);
    }
}
